package 购票Thread方法;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Ticks {
    private int no;//编号
    private String sj;//时间

    public Ticks(int no) {
       this.no=no;
        Date d=new Date();
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
        sj=sdf.format(d);
    }
  /*  public static void main(String[]args){
        Ticks t1=new Ticks();
        System.out.println(t1);
    }*/

    public int getNo() {
        return no;
    }


    public String getSj() {
        return sj;
    }

    public void setSj(String sj) {
        this.sj = sj;
    }

    @Override
    public String toString() {
        return "Ticks{" +
                "no='" + no + '\'' +
                ", sj='" + sj + '\'' +
                '}';
    }
}
